/**
 * 
 */
package com.woodbird.legend.util;

/**
 * @author guangcan
 * @version 2010-2-25
 */
public class ArrayUtils {

	public static void copy(Object[] source,Object[] dist){
		if(null == source) throw new RuntimeException("source is null!");
		if(null == dist) throw new RuntimeException("distnation is null!");
		if(source.length > dist.length)throw new RuntimeException("distnation's length is less than source!");
		for(int i=0;i<source.length;i++){
			dist[i] = source[i];
		}
	}
}
